Repository navigation
Delete dead code in PostTyper - #27639
Open
SolalPirelli wants to merge 3 commits into
Open
SolalPirelli wants to merge 3 commits into
SolalPirelli wants to merge 3 commits into
Conversation
SolalPirelli
force-pushed
the
solal/dead-feature-query
branch
from
November 27, 2026 14:29
c2c23bd to
2e4ce36
Compare
SolalPirelli
marked this pull request as ready for review
November 27, 2026 14:30
SolalPirelli
commented
Nov 27, 2026
| if parents1 ne info.parents then info.derivedClassInfo(declaredParents = parents1) | ||
| else tp | ||
| case _ => tp | ||
| // This is a lie, superAcc and synthMbr make changes, but if this is `true` the compiler crashes. |
Contributor
Author
There was a problem hiding this comment.
[error] ## Exception when compiling 92 sources to /Users/solal/scala3/scaladoc/target/scala-3.11.0-RC1-bin-SNAPSHOT-nonbootstrapped/classes
[error] dotty.tools.dotc.core.UnpicklingError: Could not read definition method apply in /Users/solal/scala3/library/target/scala-library-bootstrapped/classes/scala/runtime/AbstractPartialFunction.tasty. Caused by the following exception:
[error] java.lang.AssertionError: assertion failed: Cyclic reference while unpickling definition at address 181 in unit <no file>
this does not sound fun to debug, and anyway compilingScala2StdLib was a constant false before so this isn't changing that
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Gated by a
Feature.shouldBehaveAsScala2check that cannot ever trigger because that's only set by the parser upon encountering an import, yet PostTyper queried it when setting the phase's context before the parser has run.Have you relied on LLM-based tools in this contribution?
No
How was the solution tested?
Covered by existing tests (this is a refactoring)